import demandmkh from "../../utils/demandmkh";
//注册验证码
export const reqGetUserCode = (iphone: any) =>
  demandmkh({ url: `/user/passport/sendCode/${iphone}`, method: "get" });
//用户注册接口
export const reqUserRegister = (data: any) =>
  demandmkh<any,any>({ url: "/user/passport/register", method: "post", data });
//登录接口
export const reqUserLogin = (data: any) =>
  demandmkh({ url: "/user/passport/login", method: "post", data });

//退出登录
export const reqLogout = () =>
  demandmkh<any,any>({ url: `/user/passport/logout`, method: "get" });

//获取用户信息接口
export const reqUserInfo = () =>
  demandmkh<any,any>({ url: "/user/passport/auth/getUserInfo", method: "get" });
//获取某一个用户购物车数据
export const reqCartList = () =>
  demandmkh({ url: "/cart/cartList", method: "get" });
